/**
 * Copyright 2017 orivil Authors. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found at https://mit-license.org.
 */

package swagger

/**
Example:
	var res = Responses{
		"default": {},
		"200":     {},
		"404":     {},
	}
*/
type Responses map[string]*Response

type Response struct {
	// Required. A short description of the response. GFM syntax can be used
	// for rich text representation.
	Description string `json:"description,omitempty"`

	// A definition of the response structure. It can be a primitive, an array
	// or an object. If this field does not exist, it means no content is
	// returned as part of the response. As an extension to the Schema Object,
	// its root type value may also be "file". This SHOULD be accompanied by
	// a relevant produces mime-type.
	Schema *Schema `json:"schema,omitempty"`

	// A list of headers that are sent with the response.
	Headers Headers `json:"headers,omitempty"`
}